Gets or sets the data generated when a learner responds to the interaction.
Parent Type: Interaction
Namespace: Microsoft.LearningComponents.DataModel
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public object LearnerResponse { get; set; } |
| Exception type | Condition |
| InvalidOperationException | Thrown if this LearningDataModel object cannot be written to. |
| ArgumentException | Thrown if the value passed is not the correct type. |
| ArgumentOutOfRangeException | Thrown if the value is a string and is longer than BaseSchemaInternal.InteractionItem.MaxLearnerResponseStringLength in SCORM 2004 packages, or greater than 255 characters in SCORM 1.2 packages. |
In SCORM 2004, this corresponds to cmi.interactions.n.learner_response.
In SCORM 1.2, this corresponds to cmi.interactions.n.student_response.
This property represents the data generated by the learner's response to an interaction. The object type and format of the response is dependent upon the InteractionType of this interaction.
If InteractionType is InteractionType.TrueFalse, this value will be returned as a Boolean and is expected to be set as a Boolean. If InteractionType is InteractionType.Numeric, this value will be returned as a Single and is expected to be set as a Single. Otherwise, a string value is returned and expected.